<template>
  <div id="app">
    <div class="main">
      <Header class="header-box"/>
      <div class="main-content">
        <router-view></router-view>
      </div>
<!--      <el-backtop :visibility-height="200" target=".main-content"></el-backtop>-->
      <el-backtop :visibility-height="200"></el-backtop>
    </div>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld'
import Header from './components/Header'

export default {
  name: 'App',
  components: {
    Header,

  }
}
</script>

<style>
  #app {
    /*font-family: Avenir, Helvetica, Arial, sans-serif;*/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
    margin-top: 60px;
    padding: 0;
    position: sticky;
    /*height: 100%;*/
  }
  .main{
    /*height: calc(100vh - 60px);*/
    /*display: flex;*/
    /*height: 100%;*/
  }
  .header-box{
    position: fixed;
    top: 0;
  }
  .main-content {
    padding-top: 10px;
    width: 100%;
    /*height: 100%;*/
    /*border: 1px #00BB33 solid;*/

    /* 表情包打开后会给main_content增加一个Y轴滚动条 */
    /*overflow: auto;*/
  }
</style>
